package com.bst.bsj.common.dal.ibatis;


import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Service;
import com.bst.bsj.common.dal.daointerface.SpareNameConfigDAO;
import com.bst.bsj.common.dal.dataobject.SpareNameConfig;
import com.sylinxsoft.tools.dao.impl.CommonBaseDAOImpl;

@Service
@SuppressWarnings("unchecked")
public class SpareNameConfigDAOImpl extends CommonBaseDAOImpl implements SpareNameConfigDAO {

  @Override
  public Long getCounts(Map<String, Object> paramMap) {
    return (Long) getSqlMapClientTemplate().queryForObject(getNameSpace() + ".MS_QUERY_COUNT", paramMap);
  }

  @Override
  public List<SpareNameConfig> selectAll(Map<String, Object> paramMap) {
    return (List<SpareNameConfig>) this.getSqlMapClientTemplate().queryForList(getNameSpace() + ".MS_QUERY_PAGE", paramMap);
  }

  
  @Override
  public int update(SpareNameConfig spare) {
    return getSqlMapClientTemplate().update(getNameSpace() + ".MS_UPDATE", spare);
  }

 

}
